/* 基础布局样式 */
:root {
    --sidebar-width: 250px;
    --navbar-height: 56px;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: var(--navbar-height);
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%) !important;
    margin-bottom: var(--navbar-height);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* 导航菜单样式 */
.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.nav-link {
    padding: 0.75rem 1.25rem !important;
    position: relative;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 24px;
    height: 3px;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 3px;
}

/* 导航栏右侧时间显示 */
.nav-time {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-left: auto;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-time i {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

/* 在小屏幕上调整时间显示 */
@media (max-width: 768px) {
    .nav-time {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
    
    .nav-time i {
        font-size: 0.9rem;
    }
}

/* 主要内容区布局 */
.wrapper {
    display: flex;
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    box-shadow: 1px 0 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: fixed;
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.sidebar-header h6 {
    margin: 0;
    font-weight: 600;
    color: #1565c0;
    display: flex;
    align-items: center;
}

.sidebar-header h6::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1565c0;
    border-radius: 50%;
    margin-right: 8px;
}

.sidebar .components {
    padding: 1rem 0;
}

.sidebar a {
    padding: 0.875rem 1.5rem;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #666;
}

.sidebar a:hover {
    background: #f8f9fa;
    color: #0d6efd;
    padding-left: 1.75rem;
}

.sidebar li.active a {
    background: #e9ecef;
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    font-weight: 500;
}

/* 主要内容区样式 */
.content {
    flex: 1;
    margin-top: var(--navbar-height);
    padding: 1.5rem;
}

.card {
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.stats-card h3 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.value-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    transition: color 0.3s ease;
}

.unit {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.trend-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    height: 20px;
}

.trend-indicator i {
    font-size: 0.85rem;
    margin: 0 0.25rem;
}

.trend-up {
    color: #dc3545;
}

.trend-down {
    color: #198754;
}

.trend-stable {
    color: #6c757d;
}

.stats-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
    margin: 0;
}

/* 详细数据面板新样式 */
.data-overview-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #f8f9fa;
}

.data-overview-header h6 {
    margin: 0;
    color: #495057;
}

.depth-value {
    color: #0d6efd;
    font-weight: 600;
}

.update-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.data-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.data-grid .data-item {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #495057;
}

.data-header i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.data-content {
    display: flex;
    flex-direction: column;
}

.main-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.sub-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.sub-item {
    display: flex;
    flex-direction: column;
}

.sub-item .label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.sub-item .value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.sub-item .trend {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 4px;
}

.trend.up {
    color: #198754;
}

.trend.down {
    color: #dc3545;
}

.trend i {
    font-size: 0.85rem;
}

.trend .fa-arrow-up {
    color: #dc3545;
}

.trend .fa-arrow-down {
    color: #198754;
}

.trend .fa-minus {
    color: #6c757d;
}

.data-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #f8f9fa;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #495057;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot.online {
    background: #198754;
}

.status-dot.offline {
    background: #dc3545;
}

#realTimeChart {
    min-height: 350px;
}

.btn-group .btn {
    padding: 0.25rem 1rem;
}

#historyData .row {
    align-items: center;
    gap: 1rem;
}

#historyData input.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

#historyData .btn-primary {
    padding: 0.5rem 2rem;
    border-radius: 6px;
}

/* 添加响应式调整 */
@media (max-width: 768px) {
    .stats-card {
        margin: 0.5rem 0;
        padding: 1rem;
    }
    
    .stats-card i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stats-card h3 {
        font-size: 0.85rem;
    }
    
    .stats-card p {
        font-size: 1.25rem;
    }
}

/* 添加滚动条美化 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 侧边栏底部状态信息 */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
}

.status-item i {
    width: 20px;
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }

    .navbar-brand {
        border-right: none;
    }
}

/* 页面内容样式 */
.content-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.page-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 查询工具样式 */
.query-tools .btn-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.query-tools .btn {
    padding: 0.375rem 1rem;
}

/* 历史数据图表容器 */
#historyChart {
    min-height: 400px;
}

/* 土壤剖面图样式 */
#soilProfileChart {
    min-height: 500px;
}

/* 工具按钮样式 */
.page-tools .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.page-tools .btn i {
    font-size: 0.9rem;
}

/* 调整深度选择器的间距 */
.depth-selector {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

/* 警告通知容器样式 */
.warning-container {
    position: fixed;
    top: calc(var(--navbar-height) + 20px);
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.warning-container.show {
    opacity: 1;
    transform: translateX(0);
}

.warning-header {
    padding: 12px 15px;
    background: #f8d7da;
    color: #842029;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.warning-count {
    margin-left: auto;
    background: #842029;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.warning-list {
    max-height: 300px;
    overflow-y: auto;
}

.warning-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    background: white;
    transition: background-color 0.2s;
}

.warning-item:hover {
    background: #fff5f5;
}

.warning-item:last-child {
    border-bottom: none;
}

.warning-time {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.warning-text {
    color: #842029;
    font-size: 0.9rem;
}

/* 警告列表滚动条样式 */
.warning-list::-webkit-scrollbar {
    width: 4px;
}

.warning-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.warning-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.warning-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #fff;
}

/* 图表视图切换样式 */
.chart-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chart-view.active {
    opacity: 0;
    visibility: visible;
}

/* 按钮组样式优化 */
.btn-group .btn {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-group .btn i {
    font-size: 0.9rem;
}

.btn-group .btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* 导出成功提示框样式 */
.export-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
}

.export-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.export-toast i {
    font-size: 1.1rem;
    margin-right: 8px;
}

/* 土壤剖面页面样式 */
.soil-profile-container {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom,
        #8B4513 0%,
        #A0522D 20%,
        #6B4423 40%,
        #8B4513 60%,
        #A0522D 80%,
        #6B4423 100%
    );
    border-radius: 8px;
    overflow: hidden;
}

.soil-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.depth-indicators {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    border-left: 2px dashed rgba(0, 0, 0, 0.1);
}

.depth-line {
    position: absolute;
    width: 100%;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.depth-label {
    position: absolute;
    right: 10px;
    top: -10px;
    font-size: 0.8rem;
    color: #666;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.analysis-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.analysis-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-good {
    background-color: #28a745;
}

.status-warning {
    background-color: #ffc107;
}

.status-alert {
    background-color: #dc3545;
}

/* 土壤剖面分析样式优化 */
.profile-data .analysis-item {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.profile-data .analysis-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.profile-data .analysis-value {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.5;
}

/* 土壤状态评估样式 */
.soil-status .status-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.soil-status .status-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.soil-status .status-title {
    font-weight: 500;
    color: #2c3e50;
}

.soil-status .status-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.soil-status .status-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.recommendations {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

.recommendation-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.recommendation-list li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.recommendation-list li:last-child {
    margin-bottom: 0;
}

/* 土层数据分析新样式 */
.depth-tabs {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.depth-tabs .btn-group {
    display: flex;
    justify-content: space-between;
}

.depth-tabs .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    margin: 0 2px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-item {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.data-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.data-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.data-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.data-unit {
    font-size: 0.8rem;
    color: #6c757d;
}

.analysis-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.analysis-item:last-child {
    margin-bottom: 0;
}

/* 土壤数据表格样式 */
.soil-data-table {
    font-size: 0.9rem;
}

.soil-data-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.soil-data-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.soil-data-table tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

.soil-data-table .status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.good {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-badge.alert {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 数据分析样式优化 */
.data-analysis {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

.analysis-title {
    color: #2c3e50;
    font-weight: 600;
}

/* 状态评估指标样式 */
.status-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.status-metric {
    text-align: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.status-metric:hover {
    transform: translateY(-2px);
}

.metric-icon {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #3498db;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 土壤健康指数进度条 */
.status-progress {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progress-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.progress {
    height: 0.75rem;
    background-color: #e9ecef;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background-color: #3498db;
    transition: width 0.6s ease;
}

.progress-value {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
}

/* 建议措施样式优化 */
.recommendations {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommendations-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.recommendations-header i {
    color: #f1c40f;
    font-size: 1.25rem;
}

.recommendation-list {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.recommendation-list li {
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0.5rem;
}

.recommendation-list li:before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

.recommendation-list li:last-child {
    margin-bottom: 0;
}

/* 系统配置页面样式 */
.sensor-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sensor-list::-webkit-scrollbar {
    width: 4px;
}

.sensor-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sensor-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.sensor-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.sensor-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sensor-item.inactive {
    opacity: 0.7;
}

.sensor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sensor-title {
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sensor-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sensor-status.active {
    background-color: #28a745;
}

.sensor-status.inactive {
    background-color: #dc3545;
}

.sensor-actions {
    display: flex;
    gap: 0.5rem;
}

.sensor-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.sensor-info {
    font-size: 0.9rem;
    color: #666;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sensor-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sensor-info-label {
    color: #6c757d;
}

.sensor-info-value {
    font-weight: 500;
    color: #2c3e50;
}

.threshold-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.threshold-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.threshold-inputs .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.threshold-inputs .form-control {
    border-color: #e9ecef;
}

.threshold-inputs .input-group-text {
    background: #fff;
    border-color: #e9ecef;
    color: #6c757d;
}

/* 传感器统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 传感器模态框样式 */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.25rem;
}

/* 提示框样式 */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background: #dc3545;
}

/* 历史数据查询结果样式 */
.overview-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.overview-icon.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.overview-info {
    flex: 1;
}

.overview-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.overview-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 数据统计表格样式 */
.statistics-title {
    color: #2c3e50;
    font-weight: 500;
}

.data-statistics .table {
    margin-bottom: 0;
}

.data-statistics .table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #2c3e50;
}

.data-statistics .table td {
    vertical-align: middle;
}

/* 图表控制按钮样式 */
.chart-controls .btn-group .btn {
    padding: 0.375rem 0.75rem;
}

.chart-controls .btn-group .btn i {
    font-size: 0.875rem;
} 